<?php

namespace App\Admin\Controllers;

use App\Admin\Forms\WechatBdReply;
use App\Admin\Forms\WechatMenu;
use App\Admin\Forms\WechatZdReply;
use App\Http\Controllers\Controller;
use Encore\Admin\Layout\Content;
use Encore\Admin\Widgets\Tab;

class WechatSettingController extends Controller
{
    public function index(Content $content)
    {
        $forms = [
            'bd_reply'   => WechatBdReply::class,
            'auto_reply' => WechatZdReply::class,
            'menu'       => WechatMenu::class,
        ];

        return $content
            ->title('微信设置')
            ->body(Tab::forms($forms));
    }
}
